﻿using System.Web.Mvc;
using System.Web.Routing;

namespace TfsReports.Web.Extensions
{
    public static class HtmlHelperExtensions
    {
        public static string Image(this HtmlHelper helper, object attributes)
        {
            TagBuilder builder = new TagBuilder("img");
            builder.MergeAttributes(new RouteValueDictionary(attributes));
            return builder.ToString(TagRenderMode.SelfClosing);
        }
    }

}
